/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bit.entidade;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author marcelo
 */
@Entity
@Table(name = "sistema_operacional")
@NamedQueries({@NamedQuery(name = "SistemaOperacional.findAll", query = "SELECT s FROM SistemaOperacional s"), @NamedQuery(name = "SistemaOperacional.findById", query = "SELECT s FROM SistemaOperacional s WHERE s.id = :id"), @NamedQuery(name = "SistemaOperacional.findByFornecedor", query = "SELECT s FROM SistemaOperacional s WHERE s.fornecedor = :fornecedor"), @NamedQuery(name = "SistemaOperacional.findByDistribuicao", query = "SELECT s FROM SistemaOperacional s WHERE s.distribuicao = :distribuicao"), @NamedQuery(name = "SistemaOperacional.findByVercao", query = "SELECT s FROM SistemaOperacional s WHERE s.vercao = :vercao")})
public class SistemaOperacional implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Basic(optional = false)
    @Column(name = "fornecedor")
    private String fornecedor;
    @Basic(optional = false)
    @Column(name = "distribuicao")
    private String distribuicao;
    @Basic(optional = false)
    @Column(name = "vercao")
    private String vercao;

    public SistemaOperacional() {
    }

    public SistemaOperacional(Long id) {
        this.id = id;
    }

    public SistemaOperacional(Long id, String fornecedor, String distribuicao, String vercao) {
        this.id = id;
        this.fornecedor = fornecedor;
        this.distribuicao = distribuicao;
        this.vercao = vercao;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFornecedor() {
        return fornecedor;
    }

    public void setFornecedor(String fornecedor) {
        this.fornecedor = fornecedor;
    }

    public String getDistribuicao() {
        return distribuicao;
    }

    public void setDistribuicao(String distribuicao) {
        this.distribuicao = distribuicao;
    }

    public String getVercao() {
        return vercao;
    }

    public void setVercao(String vercao) {
        this.vercao = vercao;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SistemaOperacional)) {
            return false;
        }
        SistemaOperacional other = (SistemaOperacional) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "bit.entidade.SistemaOperacional[id=" + id + "]";
    }

}
